package com.mingdong.first.zerenlian;

public abstract class Leader {

	protected String name;
	protected Leader nextLeader;

	public Leader(String name){
		this.name = name;
	}
	
	public void setNextLeader(Leader leader){
		this.nextLeader = leader;
	}
	
	public abstract void handleRequest (LeaveRequest request);

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Leader getNextLeader() {
		return nextLeader;
	}
	
}
